import imageUtility.IImageDescriptor;
import imageUtility.ImageIntensityDescriptor;

import java.io.File;
import java.util.ArrayList;
import java.util.List;


public class unitTest {


	public static void main(String[] args) {
		IImageDescriptor descriptor = new ImageIntensityDescriptor(10);
		List<ImageData> imageDatas = new ArrayList<ImageData>();
		
		System.out.println("progress - starting...");
		
		File[] files = new File("C:\\Users\\ord\\Desktop\\New folder").listFiles();
		for(File file : files) {
			imageDatas.add(new ImageData(file.getAbsolutePath(),descriptor.getImageDescriptors(file.getAbsolutePath())));
		}
		
		System.out.println("progress - finished reading images and set descriptors");

		
		ImagePlacer placer = new ImagePlacer(imageDatas, 5);
		ImageData[][] matrix = placer.getPlacedImagesMatrix();
		for (int i=0; i<matrix.length;i++){
			for (int j=0; j<matrix[i].length; j++){
				if (matrix[i][j] != null){
					System.out.println("i="+i+",j="+j+",path="+matrix[i][j].getImagePath());
				}
			}
		}
	}
}
